<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>My JSP 'alarmList.jsp' starting page</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

<style type="text/css">
.controls.inline>* {
	display: inline-block;
}

.controls.inline>input {
	width: 100px;
}
.row{
margin-left:20px;
}
</style>

</head>

<body>
	<div class="row-fluid">
		<!-- block -->
		<div class="templatemo-content-container">
		<div class="templatemo-content-widget white-bg">
			<h2 class="margin-bottom-10">修改用户</h2>
			<p>修改用户</p>
			<form action="updateUser.do?jspName=userinfo&menuId=4" class="templatemo-login-form"
				method="post">
				<input type="hidden" name="id" value="${user.id}" />
				<div class="row form-group">
					<div class="col-lg-6 col-md-6 form-group">
						<label for="inputFirstName">账号</label> <input type="text"
							class="form-control" name="name" value="${user.name}"/>
					</div>
				</div>
				<div class="row form-group">
					<div class="col-lg-6 col-md-6 form-group">
						<label for="inputEmail">邮箱</label> <input type="text"
							class="form-control" name="email" value="${user.email}">
					</div>
				</div>
				<div class="row form-group">
					<div class="col-lg-6 form-group">
						<label class="control-label templatemo-block">性别</label> <select
							id="userList" class="form-control" name="sex">
							<option value="0" <c:if test="${user.sex==0}">selected</c:if>>男</option>
							<option value="1" <c:if test="${user.sex==1}">selected</c:if>>女</option>
						</select>
					</div>
				</div>
				<div class="row form-group">
					<div class="col-lg-6 form-group">
						<label class="control-label templatemo-block">权限</label> <select
							id="userList" class="form-control" name="sex">
							<option value="0" <c:if test="${user.sex==0}">selected</c:if>>普通用户</option>
							<option value="1" <c:if test="${user.sex==1}">selected</c:if>>会员</option>
							<option value="2" <c:if test="${user.sex==2}">selected</c:if>>管理员</option>
						</select>
					</div>
				</div>
				<div class="form-group text-right">
					<button type="submit" class="templatemo-blue-button">保存</button>
					<c:if test="${sessionScope.user.type==4 && user.del_flag==true }">
						<a href="delUser.do?id=${user.id}&del_flag=false" type="button"
							class="templatemo-white-button">恢复</a>
					</c:if>
				</div>
			</form>
		</div>
		<!-- /block -->
	</div>
</body>
</html>
